home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / cpcug.zip / SIZE.DOC < prev    next >
Text File  |  1987-04-20  |  2KB  |  48 lines

  1.           SIZE (and ATSIZE)                          Art Merrill
  2.           Command(s)
  3.           Copyright (c) 1986, Ziff-Davis Publishing Co.
  4.           ______________________________________________________
  5.  
  6.           Purpose:  Calculates the storage requirements of a file
  7.                     or group of files, based on the number of DOS
  8.                     clusters necessary to make floppy disk and
  9.                     hard disk copies.
  10.  
  11.           Format:   SIZE [d:]     (all files, default directory)
  12.                        or
  13.                     SIZE [d:][path]filename[.ext]
  14.  
  15.           Remarks:  DOS stores files in fixed-length allocation
  16.                     units called "clusters."  For floppy disks,
  17.                     the cluster size is 1024 bytes (two 512-byte
  18.                     sectors); for the PC and XT 10-Mb hard disk
  19.                     the cluster size is 4084 bytes.  On such a
  20.                     hard disk, whether a file is one byte or 4Kb
  21.                     in actual length (as reported by DIR), it
  22.                     requires the same amount (one cluster) of
  23.                     storage space.  The PC AT's 20-Mb hard disk
  24.                     is less wasteful in handling small files;
  25.                     its minimum set-aside (cluster size) is 2048
  26.                     bytes.  AT users should use ATSIZE.COM.
  27.  
  28.                     Entered without parameters, SIZE (or ATSIZE)
  29.                     returns the number of bytes used by all files
  30.                     in the current directory, the amount of space
  31.                     required to copy them to a standard (360K)
  32.                     floppy disk, and the amount of space required
  33.                     for hard disk storage.
  34.  
  35.                     Entering B:SIZE returns the same information
  36.                     for a disk in drive B:.  Pathnames and
  37.                     wildcards are supported, so you could enter
  38.  
  39.                          SIZE \PROG\*.COM
  40.  
  41.                     to learn the number of .COM files, their
  42.                     total size and storage requirements,
  43.                     contained in your \PROG subdirectory.
  44.  
  45.                     Notes:
  46.  
  47.                     1.   Requires DOS 2.0 or later.
  48.